	
	/**
	*保存方法
	*/
	public void saveOrUpdate(${model.primaryColumn.javaType} ${model.primaryColumn.columnName}<#list model.columns as column>,${column.javaType} ${column.columnName}</#list>){
		
		${model.upEntityFileName} ${model.entityFileName} = new ${model.upEntityFileName}();
		if(dao.findById(${model.primaryColumn.columnName})!=null){
			${model.entityFileName} = dao.findById(${model.primaryColumn.columnName});
		}
	<#list model.columns as column>
		${model.entityFileName}.set${column.upcolumnName}(${column.columnName});
	</#list>
		if(dao.findById(${model.primaryColumn.columnName})!=null){
			${model.entityFileName}.update();
		}else{
			${model.entityFileName}.save();
		}
	}